package p09.p0932;

public class Test {
    public static void main(String[] args) {
        StudentChouYan studentChouYan = new StudentChouYan("wangyu",123);
        System.out.println(studentChouYan.getName());
        System.out.println(studentChouYan.getAge());
        studentChouYan.chouYan();
        studentChouYan.eat();
        studentChouYan.sleep();
        System.out.println("-----------------------");
        TeacherChouYan teacherChouYan = new TeacherChouYan();
        teacherChouYan.setName("zhangsan");
        teacherChouYan.setAge(333);
        System.out.println(teacherChouYan.getName());
        System.out.println(teacherChouYan.getAge());
        teacherChouYan.chouYan();
        teacherChouYan.eat();
        teacherChouYan.sleep();
    }
}
